/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.qloudgen.sec.shiro.session;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>Title: Session Listener Implementation</p>
 * <p>Description: Wrappered session listener implementation for osgi service.</p>
 * <p>Copyright: qloudgen/sec 2014</p>
 * @author <a href="mailto:hyq.dd.sun@gmail.com">glue.3M</a>
 */
public class EnterpriseCacheSessionListener implements SessionListener {
	/**
	 * Log output.
	 */
	private final static Logger logger = LoggerFactory.getLogger( EnterpriseCacheSessionListener.class );
	
	/**
	 * Default constructor.
	 */
	public EnterpriseCacheSessionListener() {
	}
	
	/**
	 * Session start.
	 *
	 * @param session
	 */
	public void onStart(Session session) {
		logger.info( "Current session will start...{}" , session.getId() );
	}
	
	/**
	 * Session stop.
	 *
	 * @param session
	 */
	public void onStop(Session session) {
		logger.info( "Current session will stop...{}" , session.getId() );
	}
	
	/**
	 * Session expired.
	 *
	 * @param session
	 */
	public void onExpiration(Session session) {
		logger.info( "Current session will expired...{}" , session.getId() );
	}
}